package com.day08.test;

public class Student {
    private String stuName;
    private int stuAge;
    private String stuGender;

    //构造方法：长相特殊，跟类同名，并且没有返回类型
    //构造方法只能在创建对象的时候调用且仅能调用一次
    public Student(String stuName, int stuAge,String stuGender) {
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.stuGender = stuGender;
    }
}
